<?php
namespace app\modules\v2\controllers;

use yii\web\Controller;

class SiteController extends Controller {
    public function actionIndex()
    {
        \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
        return [
            'version' => 'v2',
            'message' => 'ok',
            'code' => 100,
        ];
    }
}